package com.youlv.yl.entity.hotel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * <p>
 * 支付流水表
 * </p>
 *
 * @author fenghe
 * @since 2022-01-25
 */
@Data
@TableName("h_pay_log")
@ApiModel(value = "PayLog对象", description = "支付流水表")
public class PayLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("pid")
    private Long pid;

    @TableField("info")
    private String info;

    @TableField("flag")
    private Integer flag;

    @TableField("ctime")
    private Date ctime;

    public PayLog(Long pid, int flag, String info) {
        this.pid = pid;
        this.flag = flag;
        this.info = info;
        this.ctime=new Date();
    }
}
